package com.swt.gap.common.constant;

import java.io.File;

/**
 * 通用常量
 *
 * @author sx
 * @date 2019/10/14 17:42
 */
public class CommonConstant {



    private static final String USER_HOME = System.getProperty("user.dir") + File.separator;
    /**
    * 文件保存路径
    */
    public static final String UPLOAD_DIR = USER_HOME + "data" + File.separator + "upload" + File.separator;
    public static final String RELATIVE_UPLOAD_DIR = File.separator + "data" + File.separator + "upload" + File.separator;
    public static final String EXTRACT_DIR = USER_HOME + "data" + File.separator + "extract" + File.separator;
    /**
     * 图数据存储路径
     */
    public static final String GRAPH_DATA = USER_HOME + "data" + File.separator + "databases" + File.separator + "graph.db";
    public static final String RESULT_PIC = USER_HOME + "data" + File.separator + "result" + File.separator;
    /**
     * icon存储路径
     */
    public static final String ICON_PATH = USER_HOME + "data" + File.separator + "icon" + File.separator;


    public final static String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public final static String DATETIME_FORMAT_NOLINE = "yyyyMMddHHmmss";

}
